﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using Volo.Abp.MultiTenancy;

namespace Himp.Platform
{
    /// <summary>
    /// 菜单授权
    /// </summary>
    public class MenuGrant : Entity<Guid>, IMultiTenant
    {
        /// <summary>
        /// 
        /// </summary>
        public string ProviderKey { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string ProviderName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid MenuId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Menu? Menu { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid? TenantId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public MenuGrant() { }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="roleName"></param>
        /// <param name="menuId"></param>
        public MenuGrant(string providerKey, string providerName, Guid menuId)
        {
            ProviderKey = providerKey;
            ProviderName = providerName;
            MenuId = menuId;
        }
    }
}
